package com.word.teacher.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.word.common.annotation.Excel;
import com.word.common.core.domain.BaseEntity;

/**
 * 单词信息管理对象 tb_word
 * 
 * @author wsccvb
 * @date 2025-05-20
 */
public class Word extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 单词外文 */
    @Excel(name = "单词外文")
    private String name;

    /** 中文翻译 */
    @Excel(name = "中文翻译")
    private String meaning;

    /** 图片 */
    private String image;

    /** 语音 */
    private String sound;

    /** 可用状态 */
    private Long status;

    /** 词性 */
    @Excel(name = "词性")
    private String partOfSpeech;

    /** 词源 */
    @Excel(name = "词源")
    private String etymology;

    /** 单词分组信息 */
    private List<Long> wordGroupIdList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setMeaning(String meaning) 
    {
        this.meaning = meaning;
    }

    public String getMeaning() 
    {
        return meaning;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public String getSound() {
        return sound;
    }

    public void setPartOfSpeech(String partOfSpeech)
    {
        this.partOfSpeech = partOfSpeech;
    }

    public String getPartOfSpeech()
    {
        return partOfSpeech;
    }

    public void setEtymology(String etymology)
    {
        this.etymology = etymology;
    }

    public String getEtymology()
    {
        return etymology;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public List<Long> getWordGroupIdList()
    {
        return wordGroupIdList;
    }

    public void setWordGroupIdList(List<Long> wordGroupIdList)
    {
        this.wordGroupIdList = wordGroupIdList;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (object == null || getClass() != object.getClass()) {
            return false;
        }
        Word word = (Word) object;
        return id != null && id.equals(word.id);
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("meaning", getMeaning())
            .append("image", getImage())
            .append("sound", getSound())
            .append("partOfSpeech", getPartOfSpeech())
            .append("etymology", getEtymology())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("wordGroupIdList", getWordGroupIdList())
            .toString();
    }
}
